import {ref,computed} from 'vue';
import newsImg1 from "/static/喜迎2025.png";
import newsImg2 from "/static/助学.png";
export const welcomeData =()=>
    {
        const newsImgs = ref([
            newsImg1,
            newsImg2]);
        const information=ref(false);
        const products=ref(false);
        const know=ref(false);
        const toChat = () => {  
            console.log('聊天');
            uni.navigateTo({ 
                url: '/pages/chat/chat'
            })
          }
        const changeInformation =()=>
            {
                information.value=!information.value;
            }
        const changeProducts=()=>
            {
                products.value=!products.value;
            }
            const changeknow=()=>
                {
                    know.value=know.value
                }
          return { newsImgs ,know,information,products,
            changeInformation,changeknow,changeProducts,
            toChat,
    };

    }